home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr38 / cdmx225b.zip / CDMX2DOR.MEC < prev    next >
Text File  |  1994-08-14  |  9KB  |  163 lines

  1. [moreoff]
  2. [lightgreen]                        Hang on a second as I fire up
  3. [lightgreen]                       The Next Generation CDRom Door!
  4. [pause]
  5. [comment          External Program Translation Characters]
  6.  
  7. [comment  When passing a command-line to an external program (and also when]
  8. [comment  parsing some special MECCA tokens), Maximus can include]
  9. [comment  information about the user and SysOp by using special translation]
  10. [comment  tokens.  A format token consists of a percent sign and a single,]
  11. [comment  case-sensitive letter or symbol.  Maximus will interpret the]
  12. [comment  character following the percent sign, and replace it with the]
  13. [comment  variable which that character represents.]
  14.  
  15. [comment  Maximus currently supports the following external program]
  16. [comment  translation characters:]
  17.  
  18. [comment  Char      Translation]
  19.  
  20. [comment  %!        Embeds a newline in a string.]
  21. [comment  %A        The user's FIRST name, in upper-case.]
  22. [comment  %b        The user's baud rate.  If the user is a local caller,]
  23. [comment            then this will translate to `0'.]
  24. [comment  %B        The user's LAST name, in upper-case.  (If the user has]
  25. [comment            no last name, then this will translate into `NLN', `No]
  26. [comment            Last Name'.)]
  27. [comment  %c        The user's city.]
  28. [comment  %C        The response to the last `menu' MECCA token.]
  29. [comment  %d        The area number of the current message area]
  30. [comment  %D        The area number of the current file area]
  31. [comment  %e        The user's password]
  32. [comment  %E        The user's screen length, in rows]
  33. [comment  %f        The user's first name, in mixed case.]
  34. [comment  %F        Path to the current file area.]
  35. [comment  %g        User's graphics mode -- `0' for TTY, `1' for ANSI, and]
  36. [comment            `2' for AVATAR.]
  37. [comment  %G        User's Daily DL limit, in kilobytes]
  38. [comment  %h        The user's phone number.]
  39. [comment  %H        Number of kilobytes downloaded today]
  40. [comment  %i        Total downloads]
  41. [comment  %I        Total uploads]
  42. [comment  %j        Minutes on-line, this call]
  43. [comment  %k        The current node's task number.  (`0' for no task]
  44. [comment            number.)]
  45. [comment  %K        The current node's task number in hexadecimal format]
  46. [comment            padded with leading zero to make it two characters.]
  47. [comment            (`0' for no task number.)]
  48. [comment  %l        The user's last name, in mixed case.  If the user has]
  49. [comment            no last name, then this will translate into `NLN'.]
  50. [comment  %L        If the user is REMOTE, this will translate into the]
  51. [comment            string `-pX -bY', where X is the port number (1=COM1,]
  52. [comment            2=COM2, etc) and `y' is the baud rate.  If the user is]
  53. [comment            LOCAL, this will translate into a simple `-k'.]
  54. [comment  %m        The name of the first file to transfer when invoking an]
  55. [comment            external protocol.]
  56. [comment  %M        Path to the current message area.]
  57. [comment  %n        User's full name, in mixed case.]
  58. [comment  %N        The name of your BBS, as defined in MAX.CTL.]
  59. [comment  %p        The current port number (0=COM1, 1=COM2, etc).]
  60. [comment  %P        The current port number (1=COM1, 2=COM2, etc).]
  61. [comment  %q        Path to the current msg area (NO trailing backslash)]
  62. [comment  %Q        Path to the current file area (NO trailing backslash)]
  63. [comment  %r        The user's real name, if applicable.]
  64. [comment  %R        All remaining stacked text, as entered at the last]
  65. [comment            menu.]
  66. [comment  %s        The SysOp's last name, in mixed case.  If the SysOp has]
  67. [comment            no last name, then this will translate into `NLN'.]
  68. [comment  %S        The SysOp's first name, in mixed case.]
  69. [comment  %t        The amount of time the user has left, in minutes.]
  70. [comment  %T        The amount of time the user has left, in seconds.]
  71. [comment  %u        The user's user number.]
  72. [comment  %U        Simply translates to an underscore.]
  73. [comment  %v        Path to the current upload area (with trailing]
  74. [comment            backslash)]
  75. [comment  %V        Path to the current upload area (NO trailing backslash)]
  76. [comment  %w        The path to the current FILES.BBS-type file.  This]
  77. [comment            takes into account the alternate names which may be]
  78. [comment            used by the `FileList' option.]
  79. [comment  %W        The  0  0  0 , as passed via the -s]
  80. [comment            command-line parameter.]
  81. [comment  %x        Drive letter of current drive, in upper case.]
  82. [comment  %X        The last read message number for the current message]
  83. [comment            area.  This only works while in a message area.]
  84. [comment  %Y        The user's current language number, zero based (0 is]
  85. [comment            first language, 1 is second, etc.)]
  86. [comment  %Z        Translates to the user's full name, in caps.]
  87.  
  88. [comment install the door.sys in the right subdirectory]
  89. [delete]c:\cdbob\door.sys
  90. [open]c:\cdbob\door.sys
  91. [write]COM%P:[comment                                         Com Port ]
  92. [write]%b[comment                                             baud rate]
  93. [write]8[comment                                              Stop Bits]
  94. [write]%k[comment                                             Node #   ]
  95. [write]%W[comment                                             Lock baud]
  96. [write]Y[comment                                         Screen Display]
  97. [write]N[comment                                         Printer Toggle]
  98. [write]N[comment                                              Page Bell]
  99. [write]Y[comment                                           Caller Alarm]
  100. [write]%r[comment                                           User's name]
  101. [write]%c[comment                                           User's city]
  102. [write]%h[comment                                            Home phone]
  103. [write]%h[comment                                       Work/data phone]
  104. [write]%e[comment                                       User's password]
  105. [EQ SysOp][write]100[comment                                100 / SysOp]
  106. [EQ AsstSysOp][write]80[comment                         80  / AsstSysop]
  107. [EQ Clerk][write]70[comment                                 70  / Clerk]
  108. [EQ Extra][write]60[comment                                  60 / Extra]
  109. [EQ Favored][write]50[comment                              50 / Favored]
  110. [EQ Privil][write]40[comment                            40 / Privileged]
  111. [EQ Worthy][write]35[comment                                35 / Worthy]
  112. [EQ Normal][write]30[comment                                30 / Normal]
  113. [EQ Limited][write]25[comment                              25 / Limited]
  114. [EQ Disgrace][write]20[comment                            20 / Disgrace]
  115. [EQ Twit][write]5[comment                                    5   / Twit]
  116. [write]5678[comment                                       # of times on]
  117. [write]10/22/92[comment                                Date Last Called]
  118. [write]%T[comment                                     Seconds remaining]
  119. [write]%t[comment                                     Minutes remaining]
  120. [colour write]GR[comment                              'GR' for graphics]
  121. [endcolour nocolour write]NG[comment                       'NG' for TTY]
  122. [endcolour][write]%E[comment                                Page Length]
  123. [expert write]Y[comment                                Expert Help mode]
  124. [regular write]N[comment                              Regular Help mode]
  125. [novice write]N[comment                                Novice Help mode]
  126. [hotflash write]N[comment                                 Hotflash mode]
  127. [write]1,[comment                                         Conf Req'd In]
  128. [write]0[comment                                           Conf Last In]
  129. [write]12/31/99[comment                                 Expiration Date]
  130. [write]%u[comment                                           User Number]
  131. [write]Z[comment                                       Default Protocol]
  132. [write]%I[comment                                   User's Upload Total]
  133. [write]%i[comment                                 User's Download Total]
  134. [write]0
  135. [write]1234[comment                               Total Calls from User]
  136. [write]04/32/54[comment                                 User's Birthday]
  137. [write]C:\cdbob[comment                    Maximus main directory]
  138. [write]C:\MAX\MISC[comment                       Maximus misc directory]
  139. [write]%S %s[comment                                   Sysop's F/L Name]
  140. [write]
  141. [write]00:00
  142. [write]N
  143. [write]N
  144. [write]Y
  145. [write]14
  146. [write]0
  147. [write]08/02/90
  148. [write]09:21
  149. [write]09:21
  150. [write]99
  151. [write]0
  152. [write]123
  153. [write]456
  154. [write]
  155. [write]1474
  156. [write]2116
  157. [open]Nul[comment                                   And close the file!]
  158. [comment quit comment          And we're done!                ]
  159.  
  160. [comment  start up cdmx2dor.exe with an extern run to re-read the lastuser.bbs]
  161. [comment xtern_dos @c:\cdbob\cdmx2dgo.bat]
  162. [xtern_erlvl]55 c:\cdbob\cdmx2dgo.bat
  163.